<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>



<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

 <p>
		<?php echo $form->labelEx($model,'用户名'); ?>
		<?php echo $form->textField($model,'username' , array( 'class'=>'text-input')); ?>
</p>
      <div class="clear"></div>

 <p>
		<?php echo $form->labelEx($model,'密码'); ?>
		<?php echo $form->passwordField($model,'password' , array( 'class'=>'text-input')); ?>

</p>
      <div class="clear"></div>

      <p id="remember-password">
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'记住我'); ?>
		</p>

<div class="clear"></div>
      <p>
		<?php echo CHtml::submitButton('登陆', array('class'=>'button')); ?>
	</p>
<div class="clear"></div>
			<?php echo $form->error($model,'username'); ?>
			<?php echo $form->error($model,'password'); ?>
			<?php echo $form->error($model,'rememberMe'); ?>
	
	
<?php $this->endWidget(); ?>
